package tmall;

import cn.tmall.commons.service.IBaseService;
import cn.tmall.entity.shop.ShopUser;
import cn.tmall.dao.shop.ShopUserRepository;

/**
 * @author YANG
 */
public interface IShopUserService extends IBaseService<ShopUser,Long, ShopUserRepository> {

    ShopUser findByMobile(String mobile);

    Boolean validateSmsCode(String mobile, String smsCode);

    String sendSmsCode(String mobile);

    String sendSmsCodeForOldMobile(String mobile);


    ShopUser register(String mobile,String initPwd);

    ShopUser getCurrentUser();
}

